<?php include_once $config ['client_theme_path'].$config ['client_theme'].'/header.php'; ?>
<!-- BEGIN CONTAINER -->
<div id="container">
    <!-- BEGIN MAIN CONTENT -->
    <div id="main_content" class="clearfix">
        <div id="content">
            <div id="pathway">
                <div id="pathway_inside">
                    <img src="<?php echo $config ['client_images_url'];?>/bu_relatedNews.gif" alt="" />
                    <a href="/">Trang chủ</a>» <span>RSS</span>
                </div>
            </div>
            <?php
            $config['site_title'] = 'RSS - BanTinNhaDat.vn';
            $config['site_description'] = 'RSS - '. $config['site_description'];
            $config['site_keyword'] = 'RSS, '. $config['site_keyword'];
            ?>
            <div style="margin-top:20px; margin-left:40px;">
                <ul class="rssP">
                                    <li><a href="<?php echo $config['domain'];?>/rss/new"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> Các tin mới nhất - bantinnhadat.vn</a></li>
                                        <?php
                                            $menu = getCategoryByParentId();
                                            while($rs=$DB->fetch_array($menu)){
                                        ?>
                                        <li>
						<a href="<?php echo $config['domain'];?>/rss/<?php echo $rs['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rs['name'];?></a>
                                                <?php
                                                    $menuChild = getCategoryByParentId($rs['id']);
                                                    if($menuChild){
                                                ?>
                                                <ul class="rssC">
                                                            <?php
                                                                $i=0;
                                                                while($rsChild=$DB->fetch_array($menuChild)){
                                                                    $i++;
                                                                    if($i==$DB->num_rows($menuChild)){
                                                            ?>
                                                            <li class="last"><a href="<?php echo $config['domain'];?>/rss/<?php echo $rsChild['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rsChild['name'];?></a></li>
                                                           <?php
                                                                    }else{
                                                           ?>
                                                            <li><a href="<?php echo $config['domain'];?>/rss/<?php echo $rsChild['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rsChild['name'];?></a></li>
                                                           <?php
                                                                    }
                                                                }
                                                                $rsChild='';
                                                           ?>
                                                        </ul>
                                                <?php
                                                    }
                                                ?>
					</li>
                                        <?php
                                            }
                                        ?>

				</ul>
            </div>



        </div>

        <?php include_once $config ['client_theme_path'].$config ['client_theme'].'/right.php'; ?>

    </div>
    <!-- END MAIN CONTENT-->
</div>
<!-- END CONTAINER-->
<?php include_once $config ['client_theme_path'].$config ['client_theme'].'/footer.php'; ?>